﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>蓝领</title>
<!---------------------------------- 页面基本设置禁止随意更改 ------------------------------------------>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="index" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="renderer" content="webkit" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!---------------------------------- 页面基本设置禁止随意更改 -------------------------------------------->
<!---------------------------------- 基础CSS类库可随意更改 ---------------------------------------------->
<link type="text/css" rel="stylesheet" href="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/css/reset.css?v={yun:}$config.cachecode{/yun}" />
<link type="text/css" rel="stylesheet" href="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/css/pin.css?v={yun:}$config.cachecode{/yun}" />
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<!---------------------------------- 基础CSS类库可随意更改结束 -------------------------------------------->
<!---------------------------------- 基础js类库可随意更改 ---------------------------------------->
<script type="text/javascript" src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
<script type="text/javascript" src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
<script type="text/javascript" src="{yun:}$config.sy_weburl{/yun}/app/template/jingjiren/js/jquery.1.11.3.min.js?v={yun:}$config.cachecode{/yun}"></script>
<!---------------------------------- 基础js类库可随意更改 ---------------------------------------->
    <script>
        weburl = "{yun:}$config.sy_weburl{/yun}";
    </script>

</head>
<body>
   <div class="pin_box pin_tbox">
        <!-----------------头部标题开始----------------->
        <div class="pin_title">
        	<a href="index.php?c=info&user_id={yun:}$user_id{/yun}&type={yun:}$type{/yun}" class="titleback"></a>
            <span class="titlename">处理状态</span>
        </div>
        <!-----------------头部标题结束----------------->
       <!--<form method="get" action="index.php?" name="from1" id="from1">-->
            <!--<input name="c" value="edit_handle" type="hidden"/>-->
            <input name="user_id" id="user_id" value="{yun:}$user_id{/yun}" type="hidden"/>
            <div class="pin_bcon">
                <div class="pin_scroll">
                    <div class="pin_infoedit">
                         <div class="infoname">处理状态：</div>
                         <label class="choosebox">
                             <div class="hiddenradiobox">
                                  <input type="radio" class="hiddenradio" name="chuli"  value="1" checked>
                                  <span class="hiddenradio-span"></span>
                             </div>
                             <span class="name">已处理</span>
                        </label>
                        <label class="choosebox">
                             <div class="hiddenradiobox">
                                  <input type="radio" class="hiddenradio" name="chuli"  value="0">
                                  <span class="hiddenradio-span"></span>
                             </div>
                             <span class="name">未处理</span>
                        </label>
                    </div>
                    <div class="pin_infoedit">
                         <div class="infoname">详细意见：</div>
                         <textarea class="pin_textarea" placeholder="请输入反馈意见..." name="content" id="content"></textarea>
                    </div>
                    <div class="pin_infoedit_btn">
                      <input type="button" class="pin_btn pin_alonebtn" onClick="handlesave('{yun:}url m=jingjiren c=handle_save{/yun}');" value="修改处理状态">
                    </div>

                </div>
            </div>
       <!--</form>-->
   </div>
</body>
</html>
<script type="text/javascript">
    function handlesave(url){
        var user_id=$("#user_id").val();
        var content=$("#content").val();
        var chuli=$('input:radio[name="chuli"]:checked').val();

        if(chuli==null || chuli==0){
            layer.msg('未处理不能提交！', 2, 8);return false;
        }
        if(user_id==""){
            layer.msg('用户ID不能为空！', 2, 8);return false;
        }
        if(content==''){
            layer.msg('处理描述不能为空！', 2, 8);return false;
        }

        $.post(url,{
            user_id:user_id,
            content:content,
            chuli:chuli,

        },function(data){
            var data=eval('('+data+')');

            if(data.url){
                window.location.href=data.url;
            }else{

                //alert("11111");
                layer.msg(data.msg, 2, 8);
            }
        })
    }
</script>


